<?php
/**
 * Created by PhpStorm.
 * User: ITer
 * Date: 2018/4/20
 * Time: 17:35
 */
defined('IN_YuLin') || exit('NO PERMIT!');

$table = Table('user_money_cash');
$utable = Table('user');

if($a == 'checkinfo')
{
    $last_id = intval($_POST['last_id']);
    !$last_id && AjaxReturn(1,'您没有新增数据!');

    $data = $db->getrow('SELECT * FROM '.$table.' WHERE id > '.$last_id);
    !$data &&  AjaxReturn(2,'您没有新增数据!');

    AjaxReturn(3,'您有新增数据!');
}